import 'package:fish_redux/fish_redux.dart';

enum ClassAction { action, loading, loaded, onClick }

class ClassActionCreator {
  static Action onAction() {
    return const Action(ClassAction.action);
  }

  static Action loading() {
    return const Action(ClassAction.loading);
  }

  static Action loaded() {
    return const Action(ClassAction.loaded);
  }

  static Action onClick(String id) {
    return Action(ClassAction.onClick, payload: id);
  }
}
